
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>3.1 数据类型 · gitbook电子书</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-toggle-chapters/toggle.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="语句.html" />
    
    
    <link rel="prev" href="./" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    前言
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="../使用/使用.html">
            
                <a href="../使用/使用.html">
            
                    
                    md语法 & gitbook使用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../面试题/面试题.html">
            
                <a href="../面试题/面试题.html">
            
                    
                    面试题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../面试题/html.html">
            
                <a href="../面试题/html.html">
            
                    
                    HTML
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../面试题/css.html">
            
                <a href="../面试题/css.html">
            
                    
                    CSS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../面试题/js.html">
            
                <a href="../面试题/js.html">
            
                    
                    JavaScript
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../面试题/vue.html">
            
                <a href="../面试题/vue.html">
            
                    
                    Vue
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../面试题/小程序.html">
            
                <a href="../面试题/小程序.html">
            
                    
                    小程序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../面试题/编程题.html">
            
                <a href="../面试题/编程题.html">
            
                    
                    编程题
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../html/">
            
                <a href="../html/">
            
                    
                    1. HTML
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../html/1.常用标签.html">
            
                <a href="../html/1.常用标签.html">
            
                    
                    1.1 常用标签
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../html/2.列表.html">
            
                <a href="../html/2.列表.html">
            
                    
                    1.2 列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../html/3.表单.html">
            
                <a href="../html/3.表单.html">
            
                    
                    1.3 表单属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../html/4.音频&视频.html">
            
                <a href="../html/4.音频&视频.html">
            
                    
                    1.4 ifame & audio & video
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../css/">
            
                <a href="../css/">
            
                    
                    2. CSS
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../css/1.选择器.html">
            
                <a href="../css/1.选择器.html">
            
                    
                    2.1 选择器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../css/2.字体样式.html">
            
                <a href="../css/2.字体样式.html">
            
                    
                    2.2 字体样式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../css/3.背景.html">
            
                <a href="../css/3.背景.html">
            
                    
                    2.3 背景
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../css/4.盒子模型.html">
            
                <a href="../css/4.盒子模型.html">
            
                    
                    2.4 盒子模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../css/5.浮动.html">
            
                <a href="../css/5.浮动.html">
            
                    
                    2.5 浮动
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="../css/6.定位和渐变.html">
            
                <a href="../css/6.定位和渐变.html">
            
                    
                    2.6 定位 & 渐变
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="../css/7.过渡&变形.html">
            
                <a href="../css/7.过渡&变形.html">
            
                    
                    2.7 过渡 & 变形
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.8" data-path="../css/8.动画.html">
            
                <a href="../css/8.动画.html">
            
                    
                    2.8 动画
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.9" data-path="../css/9.滤镜.html">
            
                <a href="../css/9.滤镜.html">
            
                    
                    2.9 滤镜
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.10" data-path="../css/10.布局.html">
            
                <a href="../css/10.布局.html">
            
                    
                    2.10 布局
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="./">
            
                <a href="./">
            
                    
                    3. JS
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.5.1" data-path="数据类型.html">
            
                <a href="数据类型.html">
            
                    
                    3.1 数据类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="语句.html">
            
                <a href="语句.html">
            
                    
                    操作符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="操作符.html">
            
                <a href="操作符.html">
            
                    
                    语句
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="函数.html">
            
                <a href="函数.html">
            
                    
                    函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="基本类型和引用类型的值.html">
            
                <a href="基本类型和引用类型的值.html">
            
                    
                    基本类型和引用类型的值
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="执行环境及作用域.html">
            
                <a href="执行环境及作用域.html">
            
                    
                    执行环境及作用域
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="垃圾收集.html">
            
                <a href="垃圾收集.html">
            
                    
                    垃圾收集
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.8" data-path="Object类型.html">
            
                <a href="Object类型.html">
            
                    
                    Object类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.9" data-path="Array类型.html">
            
                <a href="Array类型.html">
            
                    
                    Array类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.10" data-path="Date类型.html">
            
                <a href="Date类型.html">
            
                    
                    Date类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.11" data-path="string&array.html">
            
                <a href="string&array.html">
            
                    
                    3.2 String & Array
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.12" data-path="date.html">
            
                <a href="date.html">
            
                    
                    3.3 Date类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.13" data-path="正则表达式.html">
            
                <a href="正则表达式.html">
            
                    
                    3.4 RegExp类型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.14" data-path="global&math.html">
            
                <a href="global&math.html">
            
                    
                    3.5 Global对象 & Math对象
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.15" data-path="变量&作用域&垃圾收集.html">
            
                <a href="变量&作用域&垃圾收集.html">
            
                    
                    3.6 变量 & 作用域 & 垃圾收集
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.16" data-path="流程控制&函数.html">
            
                <a href="流程控制&函数.html">
            
                    
                    3.7 流程控制 & 函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.17" data-path="面向对象.html">
            
                <a href="面向对象.html">
            
                    
                    3.8 面向对象的程序设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.18" data-path="递归&冒泡&快速.html">
            
                <a href="递归&冒泡&快速.html">
            
                    
                    3.9 递归 & 冒泡 & 快速
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.19" data-path="定时器&防抖&节流.html">
            
                <a href="定时器&防抖&节流.html">
            
                    
                    3.10 定时器\防抖\节流
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.20" data-path="DOM获取&DOM操作.html">
            
                <a href="DOM获取&DOM操作.html">
            
                    
                    3.11 DOM获取 & DOM操作
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.21" data-path="键盘事件&鼠标事件.html">
            
                <a href="键盘事件&鼠标事件.html">
            
                    
                    3.12 键盘事件 & 鼠标事件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.22" data-path="事件冒泡&事件代理&事件绑定.html">
            
                <a href="事件冒泡&事件代理&事件绑定.html">
            
                    
                    3.13 事件冒泡\代理\绑定
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.23" data-path="this指向.html">
            
                <a href="this指向.html">
            
                    
                    3.14 this指向
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.24" data-path="Ajax&跨域.html">
            
                <a href="Ajax&跨域.html">
            
                    
                    3.15 Ajax & 跨域
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.25" data-path="Bom.html">
            
                <a href="Bom.html">
            
                    
                    3.16 BOM
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.26" data-path="ES6.html">
            
                <a href="ES6.html">
            
                    
                    3.17 ES6
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.27" data-path="js实例.html">
            
                <a href="js实例.html">
            
                    
                    3.18 js实例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../vue/">
            
                <a href="../vue/">
            
                    
                    4. Vue
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../vue/1.基础.html">
            
                <a href="../vue/1.基础.html">
            
                    
                    4.1 基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../vue/2.生命周期.html">
            
                <a href="../vue/2.生命周期.html">
            
                    
                    4.2 生命周期
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../vue/3.vuex.html">
            
                <a href="../vue/3.vuex.html">
            
                    
                    4.3 vuex
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../vue/4.原理.html">
            
                <a href="../vue/4.原理.html">
            
                    
                    4.4 深入响应式原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="../vue/5.组件.html">
            
                <a href="../vue/5.组件.html">
            
                    
                    4.5 组件进阶
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="../vue/6.规模化.html">
            
                <a href="../vue/6.规模化.html">
            
                    
                    4.6 规模化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="../vue/7.过渡&动画.html">
            
                <a href="../vue/7.过渡&动画.html">
            
                    
                    4.7 过渡 & 动画
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.8" data-path="../vue/8.可复用性&组合.html">
            
                <a href="../vue/8.可复用性&组合.html">
            
                    
                    4.8 可复用性 & 组合
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" data-path="../vue/9.工具.html">
            
                <a href="../vue/9.工具.html">
            
                    
                    4.9 工具
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../Node/">
            
                <a href="../Node/">
            
                    
                    5. Node
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../插件/">
            
                <a href="../插件/">
            
                    
                    插件
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >3.1 数据类型</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x6570;&#x636E;&#x7C7B;&#x578B;">&#x6570;&#x636E;&#x7C7B;&#x578B;</h1>
<ul>
<li>&#x7B80;&#x5355;&#x7C7B;&#x578B;&#xFF1A;Number&#x3001;String&#x3001;Boolean&#x3001;null&#x3001;undefined&#x3001;Symbol(ES6)        </li>
<li>&#x5F15;&#x7528;&#x7C7B;&#x578B;&#xFF1A;Object(&#x72ED;&#x4E49;Object&#x3001;Array&#x3001;Funtion)</li>
</ul>
<pre><code class="lang-js">    <span class="hljs-keyword">var</span> num = <span class="hljs-number">10</span>;          <span class="hljs-comment">// Number</span>
    <span class="hljs-keyword">var</span> str = <span class="hljs-string">&quot;abc&quot;</span>;       <span class="hljs-comment">// String</span>
    <span class="hljs-keyword">var</span> bool = <span class="hljs-literal">true</span>;       <span class="hljs-comment">// Boolean</span>
    <span class="hljs-keyword">var</span> nul = <span class="hljs-literal">null</span>;        <span class="hljs-comment">// null</span>
    <span class="hljs-keyword">var</span> und = <span class="hljs-literal">undefined</span>;   <span class="hljs-comment">// undefined</span>
    <span class="hljs-keyword">var</span> obj = {};          <span class="hljs-comment">// Object&#xFF08;&#x5F15;&#x7528;&#x7C7B;&#x578B;&#xFF09; </span>
    <span class="hljs-keyword">var</span> arr = [];          <span class="hljs-comment">// Object&#xFF08;&#x5F15;&#x7528;&#x7C7B;&#x578B;&#xFF09;</span>
    <span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">fun</span>(<span class="hljs-params"></span>)</span>{};      <span class="hljs-comment">// Object&#xFF08;&#x5F15;&#x7528;&#x7C7B;&#x578B;&#xFF09;</span>
</code></pre>
<p><strong>&#x7B80;&#x5355;&#x7C7B;&#x578B;&#x548C;&#x5F15;&#x7528;&#x7C7B;&#x578B;&#x7684;&#x533A;&#x522B;</strong>    </p>
<ul>
<li>&#x5F15;&#x7528;&#x7C7B;&#x578B;&#x5B58;&#x653E;&#x5728;&#x5806;&#x5185;&#x5B58;(&#x8282;&#x7701;&#x5185;&#x5B58;&#x7A7A;&#x95F4;)&#xFF0C;&#x8981;&#x628A;&#x5BF9;&#x8C61;&#x7684;&#x503C;&#x5B8C;&#x5168;&#x62F7;&#x8D1D;&#x51FA;&#x6765;&#x8981;&#x4F7F;&#x7528;&#x6DF1;&#x62F7;&#x8D1D;&#x7684;&#x65B9;&#x5F0F;</li>
<li>&#x5F15;&#x7528;&#x7C7B;&#x578B;&#x5B58;&#x653E;&#x662F;&#x5730;&#x5740;&#xFF0C;&#x5B58;&#x653E;&#x5728;&#x5806;&#x5185;&#x5B58;&#x91CC;&#xFF0C;&#x62F7;&#x8D1D;&#x7684;&#x65B9;&#x5F0F;&#x662F;&#x5730;&#x5740;&#x62F7;&#x8D1D;</li>
<li>&#x7B80;&#x5355;&#x7C7B;&#x578B;&#x5B58;&#x7684;&#x662F;&#x503C;&#xFF0C;&#x5B58;&#x653E;&#x5728;&#x6808;&#x5185;&#x5B58;&#x91CC;&#xFF0C;&#x62F7;&#x8D1D;&#x7684;&#x65B9;&#x5F0F;&#x662F;&#x503C;&#x7684;&#x62F7;&#x8D1D;</li>
</ul>
<p><strong>undefined&#x4E0E;null&#x7684;&#x533A;&#x522B;</strong></p>
<ul>
<li>undefined&#xFF1A;&#x7CFB;&#x7EDF;&#x7ED9;&#x53D8;&#x91CF;&#x7684;&#x9ED8;&#x8BA4;&#x503C;&#xFF0C;&#x6709;&#x503C;&#x4F46;&#x672A;&#x5B9A;&#x4E49;&#xFF08;&#x503C;&#xFF0C;&#x50A8;&#x5B58;&#x7A7A;&#x95F4;)</li>
<li>null&#xFF1A;&#x9700;&#x8981;&#x4EBA;&#x4E3A;&#x8BBE;&#x7F6E;&#xFF0C;&#x4EE3;&#x8868;&#x7A7A;&#x5BF9;&#x8C61;&#x6307;&#x9488;&#xFF0C;&#x901A;&#x5E38;&#x7528;&#x4F5C;&#x91CA;&#x653E;&#x4E0D;&#x9700;&#x8981;&#x7684;&#x6570;&#x636E;    </li>
<li>&#x76F8;&#x540C;&#x70B9;&#xFF1A;&#x4ECE;&#x6982;&#x5FF5;&#x4E0A;&#x8BF4;&#xFF0C;&#x90FD;&#x662F;&#x4E3A;&#x7A7A;&#xFF08;null == undefined &#x4E3A;true&#xFF09;; &#x9690;&#x5F62;&#x8F6C;&#x5316;&#x90FD;&#x4E3A;false;</li>
</ul>
<h3 id="&#x68C0;&#x6D4B;&#x6570;&#x636E;&#x7C7B;&#x578B;&#xFF1A;">&#x68C0;&#x6D4B;&#x6570;&#x636E;&#x7C7B;&#x578B;&#xFF1A;</h3>
<h5 id="1-typeof">1. typeof</h5>
<pre><code class="lang-js">    <span class="hljs-built_in">console</span>.log( <span class="hljs-keyword">typeof</span> num );    <span class="hljs-comment">//number</span>
    <span class="hljs-built_in">console</span>.log( <span class="hljs-keyword">typeof</span> bool );   <span class="hljs-comment">//boolean</span>
    <span class="hljs-built_in">console</span>.log( <span class="hljs-keyword">typeof</span> str );    <span class="hljs-comment">//string</span>
    <span class="hljs-built_in">console</span>.log( <span class="hljs-keyword">typeof</span> nud );    <span class="hljs-comment">//undefined</span>
    <span class="hljs-built_in">console</span>.log( <span class="hljs-keyword">typeof</span> nul );    <span class="hljs-comment">//typeof null==&gt; object (n&#x5E74;&#x524D;&#x7684;Bug)</span>
    <span class="hljs-built_in">console</span>.log( <span class="hljs-keyword">typeof</span> obj );    <span class="hljs-comment">//object</span>
    <span class="hljs-built_in">console</span>.log( <span class="hljs-keyword">typeof</span> arr );    <span class="hljs-comment">//object</span>
    <span class="hljs-built_in">console</span>.log( <span class="hljs-keyword">typeof</span> fun );    <span class="hljs-comment">//function</span>
</code></pre>
<h5 id="2-instanceof">2. instanceof()</h5>
<pre><code class="lang-js">    <span class="hljs-keyword">var</span> arr = <span class="hljs-keyword">new</span> <span class="hljs-built_in">Array</span>();
    <span class="hljs-built_in">console</span>.log( arr <span class="hljs-keyword">instanceof</span>(<span class="hljs-built_in">Array</span>) );    <span class="hljs-comment">//true</span>
    <span class="hljs-built_in">console</span>.log( obj <span class="hljs-keyword">instanceof</span>(<span class="hljs-built_in">Object</span>) );   <span class="hljs-comment">//true</span>
    <span class="hljs-built_in">console</span>.log( nul <span class="hljs-keyword">instanceof</span>(<span class="hljs-built_in">Object</span>) );   <span class="hljs-comment">//false</span>

    <span class="hljs-keyword">var</span> str2 = <span class="hljs-keyword">new</span> <span class="hljs-built_in">String</span>(<span class="hljs-string">&quot;string&quot;</span>);
    <span class="hljs-built_in">console</span>.log( str2 <span class="hljs-keyword">instanceof</span>(<span class="hljs-built_in">String</span>) ); <span class="hljs-comment">//true</span>
</code></pre>
<h5 id="3-objectprototypetostringcalldata-&#x539F;&#x578B;&#x94FE;">3. Object.prototype.toString.call(data) &#x539F;&#x578B;&#x94FE;</h5>
<pre><code class="lang-js">    <span class="hljs-built_in">console</span>.log( <span class="hljs-built_in">Object</span>.prototype.toString.call(num) )   <span class="hljs-comment">//[object Number]</span>
    <span class="hljs-built_in">console</span>.log( <span class="hljs-built_in">Object</span>.prototype.toString.call(bool) )  <span class="hljs-comment">//[object Boolean]</span>
    <span class="hljs-built_in">console</span>.log( <span class="hljs-built_in">Object</span>.prototype.toString.call(str) )   <span class="hljs-comment">//[object String]</span>
    <span class="hljs-built_in">console</span>.log( <span class="hljs-built_in">Object</span>.prototype.toString.call(<span class="hljs-literal">null</span>) )  <span class="hljs-comment">//[object Null]</span>
    <span class="hljs-built_in">console</span>.log( <span class="hljs-built_in">Object</span>.prototype.toString.call(<span class="hljs-literal">undefined</span>) )<span class="hljs-comment">//[object Underfined]</span>
    <span class="hljs-built_in">console</span>.log( <span class="hljs-built_in">Object</span>.prototype.toString.call(obj) )   <span class="hljs-comment">//[object Object]</span>
    <span class="hljs-built_in">console</span>.log( <span class="hljs-built_in">Object</span>.prototype.toString.call(arr) )   <span class="hljs-comment">//[object Array]</span>
    <span class="hljs-built_in">console</span>.log( <span class="hljs-built_in">Object</span>.prototype.toString.call(fun) )   <span class="hljs-comment">//[object Function]</span>
</code></pre>
<h3 id="number&#x7C7B;&#x578B;">Number&#x7C7B;&#x578B;</h3>
<h5 id="1-&#x7CBE;&#x5EA6;--tofixedn">1. &#x7CBE;&#x5EA6; &amp; toFixed(n)</h5>
<pre><code class="lang-js">    <span class="hljs-comment">// &#x7CBE;&#x5EA6;</span>
    <span class="hljs-keyword">var</span> floatNum = <span class="hljs-number">3.125e7</span>        <span class="hljs-comment">// &#x7B49;&#x4E8E;31250000</span>
    <span class="hljs-built_in">console</span>.log(<span class="hljs-number">0.1</span>+<span class="hljs-number">0.2</span> == <span class="hljs-number">0.3</span>)   <span class="hljs-comment">// false  &#x7CBE;&#x5EA6;&#x4E22;&#x5931;</span>
    <span class="hljs-comment">// tofixed()</span>
    <span class="hljs-keyword">var</span> num2 = <span class="hljs-number">0.1</span>+<span class="hljs-number">0.2</span>;
    <span class="hljs-built_in">console</span>.log( num2.toFixed(<span class="hljs-number">2</span>) )  <span class="hljs-comment">//&#x4FDD;&#x7559;n&#x4E3A;&#x5C0F;&#x6570;&#xFF0C;&#x8FD4;&#x56DE;&#x7684;&#x662F;string</span>
</code></pre>
<h5 id="2-number--parseint--parsefloat">2. Number() &amp; parseInt() &amp; parseFloat()</h5>
<pre><code class="lang-js">    <span class="hljs-comment">// Number()&#x51FD;&#x6570;&#x4E0E;&#x4E00;&#x5143;&#x52A0;&#x64CD;&#x4F5C;&#x7B26;&#x7684;&#x64CD;&#x4F5C;&#x76F8;&#x540C;</span>
    <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">Number</span>(<span class="hljs-string">&apos;00011&apos;</span>))    <span class="hljs-comment">//11</span>
    <span class="hljs-keyword">var</span> num3 = <span class="hljs-number">1.5</span> + <span class="hljs-number">1.6</span>;
    <span class="hljs-built_in">console</span>.log( <span class="hljs-built_in">parseInt</span>(num3) )   <span class="hljs-comment">//&#x8F6C;&#x4E3A;&#x6574;&#x6570;(&#x5411;&#x4E0B;&#x53D6;&#x6574;)&#xFF0C;&#x8FD4;&#x56DE;&#x7684;&#x662F;number</span>
    <span class="hljs-built_in">console</span>.log( <span class="hljs-built_in">parseFloat</span>(num3) ) <span class="hljs-comment">//&#x8F6C;&#x4E3A;&#x6D6E;&#x70B9;&#x6570;&#xFF0C;&#x8FD4;&#x56DE;&#x7684;&#x662F;number</span>
</code></pre>
<h5 id="3-nan--infinity">3. NaN &amp; Infinity</h5>
<ul>
<li>Number(str)&#xFF1A;&#x53EA;&#x8981;&#x5B57;&#x7B26;&#x4E32;&#x91CC;&#x9762;&#x5B58;&#x5728;&#x4E0D;&#x662F;&#x5408;&#x6CD5;&#x6570;&#x5B57;&#x7684;&#x5185;&#x5BB9;&#xFF0C;&#x90FD;&#x8FD4;&#x56DE;NaN            </li>
<li>parseInt(str)&#xFF1A;&#x4ECE;&#x5934;&#x5F00;&#x59CB;&#x9010;&#x4E2A;&#x5224;&#x65AD;&#xFF0C;&#x76F4;&#x5230;&#x975E;&#x6570;&#x5B57;&#x4E3A;&#x6B62;&#xFF1B;&#x5982;&#x679C;&#x7B2C;&#x4E00;&#x4E2A;&#x90FD;&#x4E0D;&#x662F;&#x6570;&#x5B57;&#xFF0C;&#x8FD4;&#x56DE;NaN</li>
</ul>
<pre><code class="lang-js">    <span class="hljs-comment">/******** NaN ********/</span>
    <span class="hljs-keyword">var</span> num6 = <span class="hljs-built_in">parseFloat</span>(<span class="hljs-string">&quot;A5&quot;</span>);   <span class="hljs-comment">//NaN</span>
    <span class="hljs-built_in">console</span>.log( <span class="hljs-built_in">Number</span>(<span class="hljs-string">&quot;A5&quot;</span>) )    <span class="hljs-comment">//NaN</span>
    <span class="hljs-built_in">console</span>.log( <span class="hljs-literal">NaN</span> == <span class="hljs-literal">NaN</span> );     <span class="hljs-comment">//false  NaN&#x4E0D;&#x7B49;&#x4E8E;NaN</span>
    <span class="hljs-comment">//isNaN&#x5224;&#x65AD;&#x662F;&#x5426;NaN</span>
    <span class="hljs-built_in">console</span>.log(<span class="hljs-string">&quot;num6&#x662F;&#x6570;&#x5B57;&#x5417;&quot;</span>,!<span class="hljs-built_in">isNaN</span>( num6 ));   <span class="hljs-comment">// false</span>

    <span class="hljs-comment">/***** Infinity *****/</span>
    <span class="hljs-keyword">var</span> num7 = <span class="hljs-literal">Infinity</span>;               <span class="hljs-comment">//&#x65E0;&#x7A77;&#x5927;</span>
    <span class="hljs-built_in">console</span>.log( <span class="hljs-number">10</span>/<span class="hljs-number">0</span> );               <span class="hljs-comment">//Chrome&#x548C;ie &#x7ED3;&#x679C;&#x4E3A;Infinity</span>
    <span class="hljs-built_in">console</span>.log(<span class="hljs-literal">Infinity</span> == <span class="hljs-literal">Infinity</span>); <span class="hljs-comment">//true</span>
</code></pre>
<h3 id="string&#x7C7B;&#x578B;">String&#x7C7B;&#x578B;</h3>
<h5 id="1-&#x957F;&#x5EA6;--&#x4E0B;&#x6807;--unicode">1. &#x957F;&#x5EA6; &amp; &#x4E0B;&#x6807; &amp; Unicode</h5>
<pre><code class="lang-js">    <span class="hljs-comment">// 1.&#x957F;&#x5EA6;&#xFF08;&#x4ECE;1&#x8D77;&#xFF09;</span>
    <span class="hljs-built_in">console</span>.log( str1.length );
    <span class="hljs-comment">// 2.&#x4E0B;&#x6807;&#xFF08;&#x4ECE;0&#x8D77;&#xFF09;</span>
    <span class="hljs-built_in">console</span>.log( str1[<span class="hljs-number">0</span>] );
    <span class="hljs-comment">// 3.Unicode</span>
    <span class="hljs-comment">// &#x4E2D;&#x6587;&#x5B57;&#x7B26;&#x7684;&#x771F;&#x6B63;&#x6837;&#x5B50;&#xFF0C;&#x57FA;&#x672C;&#x6C49;&#x5B57;&#x8303;&#x56F4;4E00-9FA5</span>
    <span class="hljs-keyword">var</span> str2 = <span class="hljs-string">&quot;\u4eca\u5929&quot;</span>
    <span class="hljs-built_in">console</span>.log( str2 );
</code></pre>
<h5 id="2-tostring--string">2. toString() &amp; String()</h5>
<pre><code class="lang-js">    <span class="hljs-comment">// 1.toString()</span>
    <span class="hljs-keyword">var</span> num = <span class="hljs-number">123</span>;
    <span class="hljs-keyword">var</span> bool = <span class="hljs-literal">true</span>;
    <span class="hljs-keyword">var</span> obj = {};
    <span class="hljs-built_in">console</span>.log(num.toString());   <span class="hljs-comment">// &#x5B57;&#x7B26;&#x4E32;&apos;123&apos;</span>
    <span class="hljs-built_in">console</span>.log(bool.toString());  <span class="hljs-comment">// &#x5B57;&#x7B26;&#x4E32;&apos;true&apos; </span>
    <span class="hljs-built_in">console</span>.log(obj.toString());   <span class="hljs-comment">// &#x5B57;&#x7B26;&#x4E32;&apos;[object Object]&apos;</span>
    <span class="hljs-comment">// 2.String()</span>
    <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">String</span>(<span class="hljs-literal">null</span>))      <span class="hljs-comment">// &#x5B57;&#x7B26;&#x4E32;&apos;null&apos;</span>
    <span class="hljs-built_in">console</span>.log(<span class="hljs-built_in">String</span>(<span class="hljs-literal">undefined</span>)) <span class="hljs-comment">// &#x5B57;&#x7B26;&#x4E32;&apos;undefined&apos;</span>
</code></pre>
<h5 id="3-&#x62FC;&#x63A5;">3. &#x62FC;&#x63A5;</h5>
<pre><code class="lang-js">    <span class="hljs-keyword">var</span> str4 = <span class="hljs-string">&quot;-color&quot;</span>;
    <span class="hljs-keyword">var</span> str5 = <span class="hljs-string">&quot;background&quot;</span>;
    <span class="hljs-built_in">console</span>.log( str5 + str4 + <span class="hljs-string">&quot;&#xFF1A;&quot;</span> )
    <span class="hljs-comment">//ES6&#x5B57;&#x7B26;&#x62FC;&#x63A5;    ${&#x53D8;&#x91CF;}&#x8868;&#x793A;&#x5728;&#x8FD9;&#x4E2A;&#x4F4D;&#x7F6E;&#x63D2;&#x5165;</span>
    <span class="hljs-keyword">var</span> str6 = <span class="hljs-string">&quot;-color&quot;</span>;
    <span class="hljs-built_in">console</span>.log( <span class="hljs-string">`background<span class="hljs-subst">${str6}</span>:`</span> )
</code></pre>
<h3 id="boolean&#x7C7B;&#x578B;">Boolean&#x7C7B;&#x578B;</h3>
<table>
<thead>
<tr>
<th style="text-align:left">&#x6570;&#x636E;&#x7C7B;&#x578B;</th>
<th style="text-align:left">&#x8F6C;&#x6362;&#x4E3A;true&#x7684;&#x503C;</th>
<th style="text-align:left">&#x8F6C;&#x6362;&#x4E3A;false&#x7684;&#x503C;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">Boolean</td>
<td style="text-align:left">true</td>
<td style="text-align:left">false</td>
</tr>
<tr>
<td style="text-align:left">String</td>
<td style="text-align:left">&#x4EFB;&#x4F55;&#x975E;&#x7A7A;&#x5B57;&#x7B26;&#x4E32;</td>
<td style="text-align:left">&apos;&apos;(&#x7A7A;&#x5B57;&#x7B26;&#x4E32;)</td>
</tr>
<tr>
<td style="text-align:left">Number</td>
<td style="text-align:left">&#x4EFB;&#x4F55;&#x975E;0&#x6570;&#x5B57;&#x503C;&#xFF08;&#x5305;&#x542B;&#x65E0;&#x7A77;&#x5927;&#xFF09;</td>
<td style="text-align:left">0&#x548C;NaN</td>
</tr>
<tr>
<td style="text-align:left">Object</td>
<td style="text-align:left">&#x4EFB;&#x4F55;&#x5BF9;&#x8C61;</td>
<td style="text-align:left">null</td>
</tr>
<tr>
<td style="text-align:left">Undefined</td>
<td style="text-align:left">/</td>
<td style="text-align:left">undefined</td>
</tr>
</tbody>
</table>
<h3 id="object&#x7C7B;&#x578B;">Object&#x7C7B;&#x578B;</h3>
<ul>
<li>&#x5BF9;&#x8C61;&#x5176;&#x5B9E;&#x662F;&#x4E00;&#x7EC4;&#x6570;&#x636E;&#x548C;&#x529F;&#x80FD;&#x7684;&#x96C6;&#x5408;</li>
<li>&#x5BF9;&#x8C61;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x6267;&#x884C;new&#x64CD;&#x4F5C;&#x7B26;&#x540E;&#x8DDF;&#x8981;&#x521B;&#x5EFA;&#x7684;&#x5BF9;&#x8C61;&#x7C7B;&#x578B;&#x7684;&#x540D;&#x79F0;&#x6765;&#x521B;&#x5EFA;<code>var obj = new Object()</code></li>
<li>&#x521B;&#x5EFA;Object&#x7C7B;&#x578B;&#x7684;&#x5B9E;&#x4F8B;&#x5E76;&#x4E3A;&#x5176;&#x6DFB;&#x52A0;&#x5C5E;&#x6027;&#x548C;&#x65B9;&#x6CD5;&#xFF0C;&#x5C31;&#x53EF;&#x4EE5;&#x521B;&#x5EFA;&#x81EA;&#x5B9A;&#x4E49;&#x5BF9;&#x8C61;</li>
<li>Object&#x7C7B;&#x578B;&#x6240;&#x5177;&#x6709;&#x7684;&#x4EFB;&#x4F55;&#x5C5E;&#x6027;&#x548C;&#x65B9;&#x6CD5;&#x4E5F;&#x540C;&#x6837;&#x5B58;&#x5728;&#x4E8E;&#x66F4;&#x5177;&#x4F53;&#x7684;&#x5BF9;&#x8C61;&#x4E2D;</li>
</ul>
<table>
<thead>
<tr>
<th style="text-align:left">&#x5C5E;&#x6027;&#x548C;&#x65B9;&#x6CD5;</th>
<th style="text-align:left">&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">constructor</td>
<td style="text-align:left">&#x4FDD;&#x5B58;&#x521B;&#x5EFA;&#x5F53;&#x524D;&#x5BF9;&#x8C61;&#x7684;&#x51FD;&#x6570;</td>
</tr>
<tr>
<td style="text-align:left">hasOwnProperty(propertyName)</td>
<td style="text-align:left">&#x68C0;&#x67E5;&#x7ED9;&#x5B9A;&#x7684;&#x5C5E;&#x6027;&#x662F;&#x5426;&#x5B58;&#x5728;&#x5F53;&#x524D;&#x5BF9;&#x8C61;&#x5B9E;&#x4F8B;&#x4E2D;&#xFF08;&#x53C2;&#x6570;&#x4E3A;&#x5B57;&#x7B26;&#x4E32;&#xFF09;</td>
</tr>
<tr>
<td style="text-align:left">isPrototypeOf(object)</td>
<td style="text-align:left">&#x68C0;&#x67E5;&#x4F20;&#x5165;&#x7684;&#x5BF9;&#x8C61;&#x662F;&#x5426;&#x662F;&#x4F20;&#x5165;&#x5BF9;&#x8C61;&#x7684;&#x539F;&#x578B;</td>
</tr>
<tr>
<td style="text-align:left">propertyIsEnumerable(propertyName)</td>
<td style="text-align:left">&#x68C0;&#x67E5;&#x7ED9;&#x5B9A;&#x7684;&#x5C5E;&#x6027;&#x662F;&#x591F;&#x80FD;&#x591F;&#x4F7F;&#x7528;for-in&#x6765;&#x679A;&#x4E3E;&#xFF08;&#x53C2;&#x6570;&#x4E3A;&#x5B57;&#x7B26;&#x4E32;&#xFF09;</td>
</tr>
<tr>
<td style="text-align:left">toLocaleString()</td>
<td style="text-align:left">&#x8FD4;&#x56DE;&#x5BF9;&#x8C61;&#x7684;&#x5B57;&#x7B26;&#x4E32;&#x8868;&#x793A;&#xFF0C;&#x8BE5;&#x5B57;&#x7B26;&#x4E32;&#x4E0E;&#x6267;&#x884C;&#x73AF;&#x5883;&#x7684;&#x5730;&#x533A;&#x5BF9;&#x5E94;</td>
</tr>
<tr>
<td style="text-align:left">toString()</td>
<td style="text-align:left">&#x8FD4;&#x56DE;&#x5BF9;&#x8C61;&#x7684;&#x5B57;&#x7B26;&#x4E32;&#x8868;&#x793A;</td>
</tr>
<tr>
<td style="text-align:left">valueOf()</td>
<td style="text-align:left">&#x8FD4;&#x56DE;&#x5BF9;&#x8C61;&#x7684;&#x5B57;&#x7B26;&#x4E32;&#x3001;&#x6570;&#x503C;&#x6216;&#x5E03;&#x5C14;&#x503C;&#x8868;&#x793A;&#xFF0C;&#x4E0E;toString()&#x7684;&#x8FD4;&#x56DE;&#x503C;&#x76F8;&#x540C;</td>
</tr>
</tbody>
</table>
<p><a href="JavaScript/&#x9762;&#x5411;&#x5BF9;&#x8C61;.md">&#x9762;&#x5411;&#x5BF9;&#x8C61;&#x7684;&#x7A0B;&#x5E8F;&#x8BBE;&#x8BA1;</a></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="./" class="navigation navigation-prev " aria-label="Previous page: 3. JS">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="语句.html" class="navigation navigation-next " aria-label="Next page: 操作符">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"3.1 数据类型","level":"1.5.1","depth":2,"next":{"title":"操作符","level":"1.5.2","depth":2,"path":"JS/语句.md","ref":"JS/语句.md","articles":[]},"previous":{"title":"3. JS","level":"1.5","depth":1,"path":"JS/README.md","ref":"JS/README.md","articles":[{"title":"3.1 数据类型","level":"1.5.1","depth":2,"path":"JS/数据类型.md","ref":"JS/数据类型.md","articles":[]},{"title":"操作符","level":"1.5.2","depth":2,"path":"JS/语句.md","ref":"JS/语句.md","articles":[]},{"title":"语句","level":"1.5.3","depth":2,"path":"JS/操作符.md","ref":"JS/操作符.md","articles":[]},{"title":"函数","level":"1.5.4","depth":2,"path":"JS/函数.md","ref":"JS/函数.md","articles":[]},{"title":"基本类型和引用类型的值","level":"1.5.5","depth":2,"path":"JS/基本类型和引用类型的值.md","ref":"JS/基本类型和引用类型的值.md","articles":[]},{"title":"执行环境及作用域","level":"1.5.6","depth":2,"path":"JS/执行环境及作用域.md","ref":"JS/执行环境及作用域.md","articles":[]},{"title":"垃圾收集","level":"1.5.7","depth":2,"path":"JS/垃圾收集.md","ref":"JS/垃圾收集.md","articles":[]},{"title":"Object类型","level":"1.5.8","depth":2,"path":"JS/Object类型.md","ref":"JS/Object类型.md","articles":[]},{"title":"Array类型","level":"1.5.9","depth":2,"path":"JS/Array类型.md","ref":"JS/Array类型.md","articles":[]},{"title":"Date类型","level":"1.5.10","depth":2,"path":"JS/Date类型.md","ref":"JS/Date类型.md","articles":[]},{"title":"3.2 String & Array","level":"1.5.11","depth":2,"path":"JS/string&array.md","ref":"JS/string&array.md","articles":[]},{"title":"3.3 Date类型","level":"1.5.12","depth":2,"path":"JS/date.md","ref":"JS/date.md","articles":[]},{"title":"3.4 RegExp类型","level":"1.5.13","depth":2,"path":"JS/正则表达式.md","ref":"JS/正则表达式.md","articles":[]},{"title":"3.5 Global对象 & Math对象","level":"1.5.14","depth":2,"path":"JS/global&math.md","ref":"JS/global&math.md","articles":[]},{"title":"3.6 变量 & 作用域 & 垃圾收集","level":"1.5.15","depth":2,"path":"JS/变量&作用域&垃圾收集.md","ref":"JS/变量&作用域&垃圾收集.md","articles":[]},{"title":"3.7 流程控制 & 函数","level":"1.5.16","depth":2,"path":"JS/流程控制&函数.md","ref":"JS/流程控制&函数.md","articles":[]},{"title":"3.8 面向对象的程序设计","level":"1.5.17","depth":2,"path":"JS/面向对象.md","ref":"JS/面向对象.md","articles":[]},{"title":"3.9 递归 & 冒泡 & 快速","level":"1.5.18","depth":2,"path":"JS/递归&冒泡&快速.md","ref":"JS/递归&冒泡&快速.md","articles":[]},{"title":"3.10 定时器\\防抖\\节流","level":"1.5.19","depth":2,"path":"JS/定时器&防抖&节流.md","ref":"JS/定时器&防抖&节流.md","articles":[]},{"title":"3.11 DOM获取 & DOM操作","level":"1.5.20","depth":2,"path":"JS/DOM获取&DOM操作.md","ref":"JS/DOM获取&DOM操作.md","articles":[]},{"title":"3.12 键盘事件 & 鼠标事件","level":"1.5.21","depth":2,"path":"JS/键盘事件&鼠标事件.md","ref":"JS/键盘事件&鼠标事件.md","articles":[]},{"title":"3.13 事件冒泡\\代理\\绑定","level":"1.5.22","depth":2,"path":"JS/事件冒泡&事件代理&事件绑定.md","ref":"JS/事件冒泡&事件代理&事件绑定.md","articles":[]},{"title":"3.14 this指向","level":"1.5.23","depth":2,"path":"JS/this指向.md","ref":"JS/this指向.md","articles":[]},{"title":"3.15 Ajax & 跨域","level":"1.5.24","depth":2,"path":"JS/Ajax&跨域.md","ref":"JS/Ajax&跨域.md","articles":[]},{"title":"3.16 BOM","level":"1.5.25","depth":2,"path":"JS/Bom.md","ref":"JS/Bom.md","articles":[]},{"title":"3.17 ES6","level":"1.5.26","depth":2,"path":"JS/ES6.md","ref":"JS/ES6.md","articles":[]},{"title":"3.18 js实例","level":"1.5.27","depth":2,"path":"JS/js实例.md","ref":"JS/js实例.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["toggle-chapters","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"toggle-chapters":{},"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"gitbook电子书","gitbook":"*","description":"记录前端相关的知识点以及一些示例的demo"},"file":{"path":"JS/数据类型.md","mtime":"2019-04-09T02:44:15.974Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-09-06T08:37:43.293Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-toggle-chapters/toggle.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

